﻿{include file="Main/menu" /}
<div class="tab">
	<div class="tab-head">
		<strong>{:lang('push')['send']}</strong>
		<ul class="tab-nav">
			<li {if $tab == ''}class="active"{/if}><a href="#tab-send">{:lang('push')['send']}</a></li>
			<li {if $tab == 'list'}class="active"{/if}><a href="#tab-list">{:lang('push')['list']}</a></li>
		</ul>
	</div>
	<div class="tab-body" style="background: #fff;padding: 20px">
		<br />
		<div class="tab-panel {if $tab == ''}active{/if}" id="tab-send">
			<form method="post" class="form-x" action="">
				<div class="am-dropdown">
					<div class="label">
						<label for="title">类型</label>
					</div>
					<div class="field">
						<select name="type" class="input input-auto" style="min-width: 60px">
							<option value="1">用户</option>
							<option value="2">配送</option>
						</select>
					</div>
				</div>
				<div class="am-dropdown">
					<div class="label">
						<label for="title">{:lang('push')['title']}</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" id="title" name="title" style="width: 330px" required />
					</div>
				</div>
				<div class="am-dropdown">
					<div class="label">
						<label>{:lang('push')['content']}</label>
					</div>
					<div class="field">
						<textarea name="message" class="input input-auto" style="min-height: 230px;min-width: 450px" required></textarea>
					</div>
				</div>
				<div class="am-dropdown">
					<div class="label"></div>
					<button class="button bg-main" type="submit">推送</button>
				</div>
			</form>
		</div>
		<div class="tab-panel {if $tab == 'list'}active{/if}" id="tab-list">
			<form method="post">
				<div class="panel admin-panel" style="border: none">
					<table class="am-table am-table-striped am-table-hover table-main">
						<tr>
							<th width="100">标题</th>
							<th width="150">内容</th>
							<th width="120">时间</th>
						</tr>
						{volist name="list" id="volist"}
						<tr>
							<td style="line-height:40px">{$volist.title}</td>
							<td style="line-height:40px">{$volist.message}</td>
							<td style="line-height:40px">{$volist.time|date="Y-m-d H:i:s",###}</td>
						</tr>
						{/volist}
					</table>
					{include file="public/pages" /}
				</div>
			</form>
		</div>
	</div>
</div>
{include file="Main/menu_footer" /}